home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
newsgrp
/
group95c.txt
/
000079_icon-group-sender _Tue Nov 7 19:00:40 1995.msg
< prev
next >
Wrap
Internet Message Format
|
1996-01-03
|
1KB
Received: by cheltenham.cs.arizona.edu; Wed, 8 Nov 1995 06:23:56 MST
Date: Tue, 7 Nov 95 19:00:40 CST
From: yak@comm.mot.com (Yarko Tymciurak)
Message-Id: <9511080100.AA07218@platov8>
To: icon-group@cs.arizona.edu
Subject: Re: Determining cursor position
Errors-To: icon-group-errors@cs.arizona.edu
| Date: 07 Nov 95 15:01:41 GMT
| From: R J Hare <rjhare@festival.ed.ac.uk>
| Subject: Determining cursor position
| To: icon-group@cs.arizona.edu
|
| > If I have opened a window and written some text to it, how do I find
| the x,y
| > coordinates of the position immediately following the last character which I
| > output?
| >
| > Thanks.
| >
| > Steve Graham
|
|
| Me too! I was just about to send the message.
|
| Is there a library routine which allows me to convert columns & rows to x,y
| positions?
|
| Roger Hare
|
Example:
link graphics
procedure main()
WOpen()
WWrites( "hello" ) # no new line; leaves cursor at end of "hello"
x := WAttrib("x") # captures canvas pixel coordinates
y := WAttrib("y")
WWrite( "\nx = ", x, "\ny = ", y)
WDone()
end
See Appendix C of IPD255 for more info.
Yarko